package cn.btks.zuulserver.feign.fallback.backmanage;

import cn.btks.commonserver.result.ResultState;
import cn.btks.zuulserver.feign.service.backmanage.BackManageClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @Author lijun
 * @Date 2021/1/11 19:55
 */
@Slf4j
@Component
public class BackManageClientFallBack implements BackManageClient {

    @Override
    public void recordLoginCount(String userName, String name) {
        log.error("zuul调用back-manage接口存储系统登录次数失败。");
    }

    @Override
    public ResultState findById(Long id) {
        log.error("zuul调用back-manage接口根据ID查询用户失败。");
        return null;
    }

    @Override
    public ResultState findByUserName(String userName) {
        log.error("zuul调用back-manage接口根据用户名查询用户失败。");
        return null;
    }

    @Override
    public ResultState findAll() {
        log.error("zuul调用back-manage接口查询资源清单失败。");
        return null;
    }

    @Override
    public ResultState findAllByUserId(Long userId) {
        log.error("zuul调用back-manage接口根据用户ID关联的角色查询关联的资源清单树失败。");
        return null;
    }
}
